binary_ring.rb